Ext.define('Admin.view.needWater.yearDispatch.YearDispatch', {
	extend: 'Admin.common.container.WizardContainer',
	xtype: 'yearDispatch',
	requires: ['Admin.view.needWater.yearDispatch.YearDispatchController'],
	controller: 'yearDispatchController',
	wizards: ['径流预报', '可供水量计算', '需水预测', '水量分配', '水量调度'],
	cls: 'solution-step',
	style: 'background-color: #fff',
	cardItems: [{
		// margin: '0 5',
		style: 'top: 0;left: 0;margin: 0;padding: 0;',
		xtype: 'runoff'
	}, {
		// margin: '0 5',
		xtype: 'waterSupplyCal'
	}, {
		// margin: '0 5',
		xtype: 'waterDemandPred'
	}, {
		// margin: '0 5',
		xtype: 'waterAllocation'
	}, {
		// margin: '0 5',
		xtype: 'waterOptimum',
		timeMode: 'year',
		river: 'fuhe'
	}]
});

Ext.define('Admin.view.solutionManage.SolutionInfo', {
	extend: 'Ext.panel.Panel',
	xtype: 'solutionInfo',
	layout: 'form',
	items: [{
		xtype: 'textfield',
		fieldLabel: '方案名称',
		value: '年调度方案',
		cls: 'newPlanInfoText',
		readOnly: true
	}, {
		xtype: 'textfield',
		fieldLabel: '方案类型',
		value: '年调度',
		cls: 'newPlanInfoText',
		readOnly: true
	}, {
		xtype: 'datetimefield',
		fieldLabel: '方案起始时间',
		cls: 'newPlanInfoText',
		value: '2016-08-01',
		readOnly: true,
		listeners: {
			change: function () {
				var edDt = this.nextSibling();
				edDt.setMinValue(this.value)
			}
		}
	}, {
		xtype: 'datetimefield',
		fieldLabel: '方案终止时间',
		cls: 'newPlanInfoText',
		value: '2017-08-01',
		readOnly: true
	}, {
		xtype: 'textfield',
		fieldLabel: '时段类型',
		value: '月',
		cls: 'newPlanInfoText',
		readOnly: true
	}, {
		xtype: 'textfield',
		fieldLabel: '专题信息',
		value: (config.proType === '0' ? '  抚河流域' : '  袁河流域') + '水资源调度',
		cls: 'newPlanInfoText',
		readOnly: true
	}, {
		xtype: 'textfield',
		fieldLabel: '制作人',
		cls: 'newPlanInfoText',
		readOnly: true
	}, {
		xtype: 'textfield',
		fieldLabel: '方案描述',
		cls: 'newPlanInfoText',
		readOnly: true
	}]
});